package com.fowo.api.model.amazon.order.list.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Data;

/** 亚马逊订单列表子表 导入导出辅助模型 */
@Data
public class AmazonOrderListProductExcelPo {

  @Size(max = 50, message = "ASIN长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "ASIN")
  private String asin;

  @Size(max = 50, message = "产品长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "产品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long productId;

  @Size(max = 500, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String productName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "数量长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "数量")
  private String quantityOrdered;

  @Size(max = 50, message = "MSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "MSKU")
  private String msku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属亚马逊订单")
  private String parentAmazonOrderListAmazonOrderId;

  @ExcelIgnore
  @ExcelProperty(value = "所属亚马逊订单")
  private Long parentAmazonOrderList;

  @Size(max = 50, message = "商品标题长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "商品标题")
  private String title;

  @ExcelProperty(value = "已配送")
  private Integer quantityShipped;

  @ExcelProperty(value = "销售收益")
  private java.math.BigDecimal salesPriceAmount;

  @ExcelProperty(value = "单价")
  private java.math.BigDecimal unitPriceAmount;

  @ExcelProperty(value = "税费")
  private java.math.BigDecimal taxAmount;

  @ExcelProperty(value = "采购成本")
  private java.math.BigDecimal cgPrice;

  @ExcelProperty(value = "毛利润")
  private java.math.BigDecimal profit;
}
